Skip to content

Decrease thumbnail size for qwen imagery task#415

Merged
annehaley merged 1 commit into
masterfrom
thumbnail-size
Jun 30, 2026
Merged

Decrease thumbnail size for qwen imagery task#415
annehaley merged 1 commit into
masterfrom
thumbnail-size

Conversation

@annehaley

Copy link
Copy Markdown
Collaborator

Now that #406 has been merged, I was able to test the behavior in production. My first attempt failed with an OOM kill during the step where we encode the imagery thumbnail (killed before it ever reached out to the inference endpoint). I made a temporary local change to decrease the thumbnail size constant from 4000 to 2000 and tried again, and it worked.

I had increased the thumbnail size to 4000 when we found that the inference endpoint could handle it, but now I find that the limiting factor is the memory of the celery worker, not the memory of the inference endpoint.

@annehaley annehaley merged commit a660e1f into master Jun 30, 2026
3 checks passed
@annehaley annehaley deleted the thumbnail-size branch June 30, 2026 18:02
@manthey

manthey commented Jun 30, 2026

Copy link
Copy Markdown

The model we picked will handle image up to 4096^2 pixels (it doesn't have to be square); anything larger gets scaled down by a pre-processing step of some sort, so probably the endpoint would allow even bigger images through. (This does nothing to help the worker's memory use)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants